import { indexApi } from "@/api/api";
import http from "@/http/http";
import { Component, Vue } from "vue-property-decorator";
@Component
export default class banner extends Vue {
    public img :any = [require('@/assets/image/logo/banner/test1.jpg'),require('@/assets/image/logo/banner/test2.jpg')]

    public bannerInfo :any = []

    mounted(){
        this.getMenuTree()
    }

    getMenuTree(){
        http.get(indexApi.categoryTree).then(res=>{
            const {data,message,code} = res
            if(code === 0){
                console.log(data,'data');
                this.bannerInfo = data
               }else{
                // modalService.confirm({
                // title:'系统提示',
                // content:message
                // })
            }
        })
    }
}
